#!/usr/bin/env node

const events = require('events');
const util = require('util');

const Radio = function(station){
  events.EventEmitter.call(this);

  var self = this;

  setTimeout(function(){
    self.emit('open',station);
  },0);
  setTimeout(function(){
    self.emit('stop',station);
  },5000);
}

util.inherits(Radio,events.EventEmitter);

module.exports = Radio;


